package com.zq.it.cms.common;

/**
 * @author zhengqiang
 * @description 全局常量配置类
 */
public class Constants {
	/**
	 * 搜索字符串前缀
	 */
	public static final String SEARCH_PREFIX = "search_";
	/**
	 * 默认分页数量
	 */
	public static final int PAGE_SIZE = 20;
	/**
	 * 分页参数前缀
	 */
	public static final String PAGE_PREFIX = "page_";
	/**
	 * 身份识别COOKIE名称
	 */
	public static final String IDENTITY_COOKIE_NAME = "_zq";
	
	public static final String CTX = "ctx";
	
	public static String ADMIN = "/admin";
	public static String BACK_SUCCESS_URL = "/admin/index.do";
	public static String BACK_LOGIN_URL = "/admin/login.do";
	public static String DEF_USERNAME = "";
	public static String DEF_PASSWORD = "";
	
	public static final String STATUS = "status";
	public static final String MESSAGE = "message";
	public static final String OPERATION_SUCCESS = "operationSuccess";
	public static final String OPERATION_FAILURE = "operationFailure";
	public static final String SAVE_SUCCESS = "saveSuccess";
	public static final String DELETE_SUCCESS = "deleteSuccess";
	
	/**
	 * 页面操作状态
	 */
	public static final String OPRT = "oprt";
	/**
	 * 新增状态
	 */
	public static final String OPRT_CREATE = "create";
	/**
	 * 编辑状态
	 */
	public static final String OPRT_EDIT = "edit";
	/**
	 * 查看状态
	 */
	public static final String OPRT_VIEW = "view";
}
